package com.itheima.d10_observer;

/**
 * 具体的观察者
 */
public class Person implements INotice {

    private String name;
    private int age;

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public void update(double price) {
        System.out.println(name+"，您关注的房源价格有更新，最新价格为："+price);
    }
}
